from django.urls import path
from . import views

urlpatterns = [
    # 获取图片验证码 GET api/v1.0/imagecode
    path('imagecode/', views.ImageCodeView.as_view()),

    # 短信验证码  /api/v1.0/smscode/
    path('sms', views.SMSCodeView.as_view()),

    # 注册  POST /api/v1.0/users
    path('users', views.RegisterView.as_view()),

    # 登录 /api/v1.0/session
    path('session', views.LoginView.as_view()),

]